package me.firstapp.module.system;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import me.firstapp.module.base.BaseEntity;

@Entity
@Table(name = "API_CLIENT_RECORD")
public class ApiClientRecord extends BaseEntity {

	private static final long serialVersionUID = 336422896701173690L;

	// 关联ID
	@Column(name = "API_CLIENT_ID", nullable = false)
	private Long apiClientId;

	// 日期
	@Column(name = "DATE", nullable = false)
	private Date date;

	// 访问数
	@Column(name = "COUNTS", columnDefinition = "BIGINT DEFAULT 0", nullable = false)
	private Long counts = 0L;

	public Long getApiClientId() {
		return apiClientId;
	}

	public void setApiClientId(Long apiClientId) {
		this.apiClientId = apiClientId;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Long getCounts() {
		return counts;
	}

	public void setCounts(Long counts) {
		this.counts = counts;
	}

}
